section .bss
        Input resd 1
        Output resd 1
section .data
        Prompt db "Input a number:",0ah,0dh
        times 100000000 db 0x0
section .text
        global _start
_start:
       nop
 
PrintPrompt: 
       mov eax,4
       mov ebx,1
       mov ecx,Prompt
       mov edx,30
       int 80h
 
ReadInput: 
      mov eax,3
      mov ebx,0
      mov ecx,Input
      mov edx,1
      int 80h
      cmp eax,0
      je Exit
Exit:
      mov eax,1
      xor ebx,ebx
      int 0x80